package com.liush.srb.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liush.srb.core.pojo.entity.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liush.srb.core.pojo.vo.BorrowInfoApprovalVO;
import com.liush.srb.core.pojo.vo.BorrowInfoDetailVO;
import com.liush.srb.core.pojo.vo.BorrowInfoSearchVO;
import com.liush.srb.core.pojo.vo.BorrowInfoVO;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author liush
 * @since 2023-03-25
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    void saveApply(BorrowInfo borrowInfo, String token);

    void getMyBorrows(Page<BorrowInfo> page, String token);

    Page<BorrowInfoVO> getBorrowInfoVOs(BorrowInfoSearchVO borrowInfoSearchVO, Integer pageNum, Integer pageSize);

    Page<BorrowInfoVO> getBorrowInfoVOs2(BorrowInfoSearchVO borrowInfoSearchVO, Integer pageNum, Integer pageSize);

    BorrowInfoDetailVO getBorrowInfoDetail(Long id);

    Integer getStatus(String token);

    void approval(BorrowInfoApprovalVO borrowInfoApprovalVO);
}
